package com.greyu.ysj.mapper;

import com.greyu.ysj.entity.CbtMinerRate;
import com.greyu.ysj.entity.CbtMinerRateExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CbtMinerRateMapper {
    long countByExample(CbtMinerRateExample example);

    int deleteByExample(CbtMinerRateExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CbtMinerRate record);

    int insertSelective(CbtMinerRate record);

    List<CbtMinerRate> selectByExample(CbtMinerRateExample example);

    CbtMinerRate selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CbtMinerRate record, @Param("example") CbtMinerRateExample example);

    int updateByExample(@Param("record") CbtMinerRate record, @Param("example") CbtMinerRateExample example);

    int updateByPrimaryKeySelective(CbtMinerRate record);

    int updateByPrimaryKey(CbtMinerRate record);
    Double seleltMaxRatioBycoinId(Integer coinId);
    
    Double selectMaxBycoinId(Integer coinId);
    Double selectMinBycoinId(Integer coinId);
}